<script type="text/javascript" src="/public/js/my/comments.js"></script>
<!-- content -->
<div class="row">
    <div class="span8">
        <div class="title-divider">
            <h3 style="line-height: 24px;"><?php echo $this->post['title']; ?></h3>
            <div class="divider-arrow"></div>
        </div>
    </div>
    <article class="blog-post span8">
        <div class="block-grey">
            <div class="block-light">
                <div class="wrapper-img">
                    <?php echo $this->post['preview_mediadata']; ?>
                </div>
                <div class="wrapper">
                    <?php echo $this->post['preview_text']; ?>
                    <?php echo $this->post['text']; ?>
                    <?php if ($this->post['tags']): ?>
                        <p class="tags">
                            Теги:
                            <?php foreach ($this->post['tags'] as $tag): ?>
                                <a href="/posts-by-tag/tag_id/<?php echo $tag['id']; ?>">
                                    <?php echo $tag['tag_name']; ?>
                                </a>
                            <?php endforeach; ?>                        
                        </p>
                    <?php endif; ?>
                    <hr>                                                          
                    <script type="text/javascript" src="//vk.com/js/api/openapi.js?96"></script>

                    <script type="text/javascript">
                      VK.init({apiId: 3699785, onlyWidgets: true});
                    </script>

                    <!-- Put this div tag to the place, where the Comments block will be -->
                    <div id="vk_comments"></div>
                    <script type="text/javascript">
                        VK.Widgets.Comments("vk_comments", {limit: 10, width: "720", attach: "*"});
                    </script>
                    <hr>                    
                </div>
            </div>
        </div>
    </article>
</div>
